package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    @Select("select * from itcast_health.t_user where username = #{username}")
    User userByName(String username);
}
